/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package exemple;


import java.util.Set;
import javax.ws.rs.Produces;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author PC
 */
@XmlRootElement(name="HistoricSystem")
public class HistoricSystem implements java.io.Serializable {
    private static final long serialVersionUID = -8667337896773261247L;
 
    private int id_historic;
    private String date_historic;
    private AddressIp address;
    private double cpuUse;
    private double memFree;
    private Set<ProcessusB> listProcess;

    public HistoricSystem() {
    }

    public HistoricSystem(int id_historic, String date_historic, double cpuUse, double memFree) {
        this.id_historic = id_historic;
        this.date_historic = date_historic;
        this.cpuUse = cpuUse;
        this.memFree = memFree;
    }
     
    public int getId_historic() {
        return id_historic;
    }
    
    public String getDate_historic() {
        return date_historic;
    }   
    public double getCpuUse() {
        return cpuUse;
    }
  
    public double getMemFree() {
        return memFree;
    }
    

    public void setId_historic(int id_historic) {
        this.id_historic = id_historic;
    }  

    public void setDate_historic(String date_historic) {
        this.date_historic = date_historic;
    }

    public void setCpuUse(double cpuUse) {
        this.cpuUse = cpuUse;
    }
    
    public void setMemFree(double memFree) {
        this.memFree = memFree;
    }
    
    public AddressIp getAddress() {
        return address;
    }

    public void setAddress(AddressIp address) {
        this.address = address;
    } 
    
    public Set<ProcessusB> getListProcess() {
        return listProcess;
    }

    public void setListProcess(Set<ProcessusB> listProcess) {
        this.listProcess = listProcess;
    }  

    @Override
    public String toString() {
        return "HistoricSystem{" + "id_historic=" + id_historic + ", date_historic=" + date_historic + ", address=" + address + ", cpuUse=" + cpuUse + ", memFree=" + memFree + '}';
    }
}
